home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / util / boot / poptoxpa.lha / PopToXPatch.doc < prev    next >
Text File  |  1995-10-09  |  2KB  |  66 lines

  1.  
  2.  
  3.                              PoptoXPatch
  4.  
  5.                                 V 1.0
  6.  
  7.                          © 1995 Frank Toepper
  8.  
  9.                             Public Domain
  10.  
  11.                    presented by Digital Innovations
  12.  
  13.  
  14. Function:
  15.  
  16.    Programs like TinyMeter or MagicClock which call the functions
  17.    'WindowToFront' respectively 'WindowToBack' from the intuition-library
  18.    in constant intervalls when 'Pop To Front' or 'Pop To Back' is turned on.
  19.    In this case the system can be caught if you move icons or use menus or
  20.    also if you use programs like PowerSnap (no idea why; the semaphore
  21.    system should properly fix such problems).
  22.    This program tries to avoid needless calls of the functions
  23.    'WindowToFront' and 'WindowToBack' by patching both functions. This
  24.    patches do nothing if no real reason is given.
  25.  
  26.    And here is what the patches mainly do:
  27.  
  28.     WindowToFront:
  29.     if (win->WLayer != win->WScreen->LayerInfo.top_layer)
  30.        WindowToFront (win);
  31.  
  32.     WindowToBack:
  33.     if (win->WLayer->back)
  34.        if (!(win->WLayer->back->Flags & LAYERBACKDROP))
  35.           WindowToBack (win);
  36.  
  37.    This code fragments should be self-explaining.
  38.    This functionallity can be easy implemented in own programs.
  39.  
  40.  
  41. Start:
  42.  
  43.    This program can be started from CLI.
  44.    No arguments needed.
  45.    The patches can be removed by starting this program again or by sending
  46.    a break (CTRL-C) to the process called 'PopToXPatch'.
  47.  
  48.  
  49. Bugs:
  50.  
  51.    This program is a kind of a 'High-Level-Patch' and do not fix the real
  52.    cause, and won't work if you use it with more than one window.
  53.  
  54.  
  55. Author:
  56.  
  57.    I would be glad to hear from you, if this program works or not :-(.
  58.  
  59.    EMail: toepper@rz.uni-greifswald.de
  60.  
  61.    SMail: Frank Toepper
  62.           Maxim Gorki Str. 5A
  63.           Greifswald
  64.           17491
  65.           Germany
  66.